from . import baseModel
from datetime import datetime
from sqlalchemy import Column, Integer, String, Boolean, DateTime


# 用户表
class Users(baseModel):
    __tablename__ = "users"
    id = Column(Integer, primary_key=True, autoincrement=True, comment="用户ID")
    username = Column(String(20), comment="账号")
    password = Column(String(255), comment="密码")
    status = Column(Integer, comment='状态', default=0)
    created_date = Column(DateTime, default=datetime.now, comment='创建时间')
    last_use = Column(DateTime, default=datetime.now, comment='最后使用时间')